package com.tcm.mapper;

import com.tcm.entity.LearningTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author Guqier
* @description 针对表【ts_learning_time(学生每日学习时长记录表)】的数据库操作Mapper
* @createDate 2023-08-23 18:11:01
* @Entity com.tcm.entity.LearningTime
*/
public interface LearningTimeMapper extends BaseMapper<LearningTime> {

    /**
     * 查询学生学习总时长
     * @param account 账号
     * @return 总时长
     */
    Integer selectTotalLearningTime(String account);

    /**
     * 获取所有学生每日平均学习时长
     * @return 获取平均学习时长
     */
    Integer selectAverage();

}




